<?php 
ob_start();
session_start();
require('../gest_login.php');
require('../languages/it.php');
require('../structure.php');
//only_no_logged();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
	var page = "confirmation";
</script>
<?php
error_reporting (0);
get_header();
get_css();
get_js();
?>
<script type="text/javascript" src="validate.js"></script>
</head>
<body class="grunge">
<div id="wrapper">
	<div id="header_container">
		<div id="header">
			<h1 id="logo"> <a href="index.html">Xero HTML &amp; CSS Template</a> </h1>
			<!-- end logo -->
			
			<?php get_nav(); ?>
			
			<div class="clear"></div>
			<!-- clears floted logo & nav -->
			
			<div id="page_title">
				<ul class="breadcrumb_nav">
					<li><a href="../">Home</a></li>
					<li><a href="#">Registrati</a></li>
				</ul>
				<h1>Registrazione</h1>
			</div>
			<!-- end page title -->
			
		</div>
		<!-- end header (940px width) --> 
	</div>
	<!-- end header container (100% width) -->
	<div id="body_content">
		<div id="content" class="">
			<div class="full">
				<h2>Conferma Registrazione<em class="heading_description"></em></h2>
				<?php  
				if(isset($_GET['id']))
				{
					$result = verify_user($_GET['id'], $_GET['code']);
					
					if($result == 1)//ok utente verificato
						echo "<span class=\"success_notice\">".USER_VERIFICATED."</span>";
					if($result == 0)//già verificato
						echo "<span class=\"error_notice\">".USER_ALREADY_VERICATED."</span>";
					if($result == -1) //errore di code o di id
						echo "<span class=\"error_notice\">".VERIFICATION_ERROR."</span>";
				}
				
				//aggiungere messaggio per modifica dell'indirizzo mail
				?>
				
			</div>
		</div>
	</div>
	<!-- end body content -->
	
	<?php get_footer(); ?>
	
</div>
<!-- end wrapper -->
</body>
</html>